;(function () {
	let myChart = echarts.init(document.querySelector('.right>.item3'))

	let option = null

	option = {
		legend: {
			top: 'bottom',
		},
		toolbox: {
			show: true,
			feature: {
				mark: { show: true },
				dataView: { show: true, readOnly: false },
				restore: { show: true },
				saveAsImage: { show: true },
			},
		},
		title: {
			text: '标题样式',
			textStyle: {
				color: '#fff',
			},
		},
		series: [
			{
				name: 'Nightingale Chart',
				type: 'pie',
				radius: [35, 100],
				center: ['40%', '50%'],
				roseType: 'area',
				itemStyle: {
					borderRadius: 0,
				},
				data: [
					{ value: 20, name: 'rose1' },
					{ value: 3, name: 'rose2' },
					{ value: 20, name: 'rose3' },
					{ value: 36, name: 'rose4' },
					{ value: 28, name: 'rose5' },
				],
			},
		],
	}
	myChart.setOption(option)
	window.addEventListener('resize', () => {
		myChart.resize()
	})
})()
